<template>
    <div>
        <top></top>

        <router-view></router-view>
    </div>
</template>

<script>
import top from '../top/top.vue'
// import store from '../../store'
// import { getQlist } from '@/util/apis'

export default {
    name: 'home',
    components: {
        top,
    },
    
    // beforeCreate() {
    //     let params={
    //         username:sessionStorage.getItem('username')
    //     }
    //     console.log(params)
    //     getQlist(params).then((response)=>{
    //         console.log(response)
    //         store.commit('getQuestion', response)
    //     }).catch((error)=>{
    //         console.log(error)
    //     })
    // }
}
</script>

<style scoped>
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap');

:global(*){
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

.container{
    display: flex;
    height: 90vh;
}
</style>